const mongoose = require('mongoose');

const foodCategorySchema = mongoose.Schema(
  {
    name: {
      type: String,
      required: true,
      trim: true,
    },
    description: {
      type: String,
      trim: true,
    },
    image: {
      type: String,
      trim: true,
    },
    isDeleted: {
      type: Boolean,
      default: false,
    },
    order: {
      type: Number,
      default: 0,
    },
    isActive: {
      type: Boolean,
      default: true,
    }
  },
  {
    timestamps: true,
  }
);

/**
 * @typedef FoodCategory
 */
const FoodCategory = mongoose.model('FoodCategory', foodCategorySchema);

module.exports = FoodCategory; 